/*
* 定义全局样式
*/
html {
  background-color: #f5f5f5;
}

body {
  margin: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

//快捷键的语义化标签
kbd {
  padding: 0.25rem;
  font-size: 0.825rem;
  border: 2px solid #cdcdcd;
  border-radius: 0.25rem;
  box-shadow: inset 0 -1px 0 0 #cdcdcd;
}

.clearfix::after {
  display: block;
  clear: both;
  content: ' ';
}

.noMore,
.loadMore {
  margin: 12px auto;
  font-size: 14px;
  color: #5c5c5c;
  text-align: center;
}

.time {
  font-size: 14px;
  color: #6d757d;
}

.el-skeleton {
  --el-skeleton-color: #f4f1f1 !important;
}

// @example <span class="svg-item thumbs-up"><i />{{ data.likes }}</span>
// 弊端 不好改颜色
.svg-item {
  // 设置flex以便上下居中
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  font-size: 13px;
  line-height: 20px;

  // 设置块级元素以便调整大小
  i {
    display: block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
    background-size: 100%;
  }

  &.thumbs-up > i {
    background-image: url('/src/icons/thumbs-up.png');
  }

  &.view > i {
    background-image: url('/src/icons/view.png');
  }

  &.messenger > i {
    background-image: url('/src/icons/messenger.png');
  }
  &.download > i {
    background-image: url('/src/icons/download.png');
  }
}
